package com.springinaction.ch02;

import org.springframework.context.annotation.*;

@Configuration
//@ComponentScan
//@Import(com.springinaction.ch02.CdConfig.class)
@ImportResource("classpath:com/springinaction/ch02/cdConfig.xml")
public class CdPlayConfig {
    @Bean
    public MediaPlayer mediaPlayer(CompactDisc compactDisc){
        return new CDPlayer(compactDisc);
    }
}
